package api

import "github.com/gin-gonic/gin"

func RegisteRouter(r *gin.Engine) {
	r.GET("/add", SaveStudent)
	r.GET("/get", GetStudentById)
	r.GET("/getAll", GetAllStudent)
	r.GET("/delete", DeleteStudent)
	r.GET("/update", UpdateStudent)
	r.GET("/getSql", GetStudentSql)

	r.GET("/getUrlParam", GetUrlParam)
	r.POST("/getUrlParam", GetUrlParam)
	r.GET("/getFormParam", GetFormParam)
	r.POST("/getFormParam", GetFormParam)
	r.POST("/getJson", GetJson)
	r.GET("/getUrlPathParam/:name/:age", GetUrlPathParam)
}
